/* 储存组织相关控件字段 */

import { IcomponentItem } from '../types';

/* 储存组织相关属性 */
export const humanControl: IcomponentItem[] = [
  {
    componentName: '姓名',
    code: 'HUMAN_NAME',
    componentType: 'TEXT',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'humanName',
    props: {
      placeholder: '请输入'
    }
  },
  {
    componentName: '性别',
    code: 'HUMAN_SEX',
    componentType: 'RADIO',
    icon: 'icon-danhangwenben',
    showFieldList: [],
    fieldName: 'humanSex',
    props: {}
  },
  {
    componentName: '曾用名',
    code: 'HUMAN_PRE_NAME',
    componentType: 'TEXT',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'humanPreName',
    props: {
      placeholder: '请输入'
    }
  },
  {
    componentName: '英文名',
    code: 'HUMAN_ENGLISH_NAME',
    componentType: 'TEXT',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'humanEnglishName',
    props: {
      placeholder: '请输入'
    }
  },
  {
    componentName: '出生日期',
    code: 'HUMAN_BIRTHDAY',
    componentType: 'DATE',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'humanBirthday',
    props: {
      placeholder: '请输入'
    }
  },
  {
    componentName: '证件类型',
    code: 'HUMAN_CERTIFICATE_TYPE',
    componentType: 'SELECT',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'humanCertificateType',
    props: {
      placeholder: '请选择'
    }
  },
  {
    componentName: '证件号码',
    code: 'HUMAN_ID',
    componentType: 'TEXT',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'humanId',
    props: {
      placeholder: '请输入'
    }
  },
  {
    componentName: '手机号码',
    code: 'HUMAN_PHONE',
    componentType: 'TEXT',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'humanPhone',
    props: {
      placeholder: '请输入'
    }
  },
  {
    componentName: '工号',
    code: 'HUMAN_CODE',
    componentType: 'TEXT',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'humanCode',
    props: {
      placeholder: '请输入'
    }
  },
  {
    componentName: '电子邮箱',
    code: 'HUMAN_EMAIL',
    componentType: 'TEXT',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'humanEmail',
    props: {
      placeholder: '请输入'
    }
  },
  {
    componentName: '民族',
    code: 'HUMAN_NATION',
    componentType: 'SELECT',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'humanNation',
    props: {
      placeholder: '请选择'
    }
  },
  {
    componentName: '籍贯',
    code: 'HUMAN_ORIGIN',
    componentType: 'SELECT',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'humanOrigin',
    props: {
      placeholder: '请选择'
    }
  },
  {
    componentName: '户籍所在地',
    code: 'HUMAN_RESIDENCE',
    componentType: 'SELECT',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'humanResidence',
    props: {
      placeholder: '请选择'
    }
  },
  {
    componentName: '现居住地（详细）',
    code: 'HUMAN_ADDRESS',
    componentType: 'SELECT',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'humanAddresss',
    props: {
      placeholder: '请输入'
    }
  },
  {
    componentName: '工作性质',
    code: 'HUMAN_JOB_NATURE',
    componentType: 'SELECT',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'humanJobNature',
    props: {
      placeholder: '请选择'
    }
  },
  {
    componentName: '员工状态',
    code: 'HUMAN_STATE',
    componentType: 'SELECT',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'humanState',
    props: {
      placeholder: '请选择'
    }
  },
  {
    componentName: '试用期',
    code: 'HUMAN_PROBATION',
    componentType: 'SELECT',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'humanProbation',
    props: {
      placeholder: '请选择'
    }
  }
];

/* 储存code */
export const humanControlField = [
  'HUMAN_NAME',
  'HUMAN_PRE_NAME',
  'HUMAN_ENGLISH_NAME',
  'HUMAN_SEX',
  'HUMAN_BIRTHDAY',
  'HUMAN_CERTIFICATE_TYPE',
  'HUMAN_ID',
  'HUMAN_PHONE',
  'HUMAN_CODE',
  'HUMAN_EMAIL',
  'HUMAN_NATION',
  'HUMAN_ORIGIN',
  'HUMAN_RESIDENCE',
  'HUMAN_ADDRESS',
  'HUMAN_JOB_NATURE',
  'HUMAN_STATE',
  'HUMAN_PROBATION'
];
